//: PaymentForm.java 17.09.2008 13:35:26Z apt $
package com.devunion.salon.web.form;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Timoshenko Alexander
 */
public class PaymentForm extends ActionForm {
    private String type;
    private Float discount = 0f;
    private String price;

    private Boolean checkPayment = Boolean.FALSE;
    private String secondPaymentMethod;
    private List<LabelValueBean> methods = new ArrayList<LabelValueBean>();
    private Float amount = 0F;
    private Float secondPaymentAmount = 0F;

    private String reminder;
    private String giftcard;
    private String submittedValue;

    public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
        submittedValue = reminder = price = secondPaymentMethod = giftcard = null;
        amount = 0F;
        super.reset(actionMapping, httpServletRequest);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Float getDiscount() {
        return discount;
    }

    public void setDiscount(Float discount) {
        this.discount = discount;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSubmittedValue() {
        return submittedValue;
    }

    public void setSubmittedValue(String submittedValue) {
        this.submittedValue = submittedValue;
    }

    public String getSecondPaymentMethod() {
        return secondPaymentMethod;
    }

    public void setSecondPaymentMethod(String secondPaymentMethod) {
        this.secondPaymentMethod = secondPaymentMethod;
    }

    public List<LabelValueBean> getMethods() {
        return methods;
    }

    public void setMethods(List<LabelValueBean> methods) {
        this.methods = methods;
    }

    public Float getAmount() {
        return amount;
    }

    public void setAmount(Float amount) {
        this.amount = amount;
    }

    public Boolean getCheckPayment() {
        return checkPayment;
    }

    public void setCheckPayment(Boolean checkPayment) {
        this.checkPayment = checkPayment;
    }

    public String getReminder() {
        return reminder;
    }

    public void setReminder(String reminder) {
        this.reminder = reminder;
    }

    public String getGiftcard() {
        return giftcard;
    }

    public void setGiftcard(String giftcard) {
        this.giftcard = giftcard;
    }

    public Float getSecondPaymentAmount() {
        return secondPaymentAmount;
    }

    public void setSecondPaymentAmount(Float secondPaymentAmount) {
        this.secondPaymentAmount = secondPaymentAmount;
    }
}
